#include<bits/stdc++.h>
using namespace std;
int main(){
    freopen("detect.in","r",stdin);
    freopen("detect.out","w",stdout);
    long long T,n,m,L,V;
    cin>>T>>n>m>>L>>V;
    long long pans[L]=0;
    for(int i=0;i<t;i++){
        for(long long j=0;j<n;j++){
            int d,v,a;
            cin>>d>>v>>a;
        }
    }
    for(int i=0;i<m;i++){
        int p;
        cin>>p;
    }
    cout<<
    return 0;
}
